#import "head.h"
#import "layer_game_background.h"
#import "layer_game_object.h"
#import "layer_game_touch.h"
#import "layer_dialog.h"
#import "layer_box2d_render.h"

#define LAYER_GAME_BACKGROUND_Z 0
#define LAYER_GAME_OBJECT_Z 1
#define LAYER_BOX2D_RENDER_Z 2
#define LAYER_GAME_MENU_Z 3
#define LAYER_GAME_DIALOG_Z 4
#define LAYER_GAME_TOUCH_Z 5

@interface SceneGame : CCScene
{
	int menuChapterMissionID_;
	LayerGameBackground *layerBackground_;
	LayerGameObject *layerObject_;
	LayerGameTouch *layerTouch_;
	LayerDialog *layerDialog_;
	LayerBox2dRender *layerRender_;
}

@property (nonatomic,readwrite,assign) LayerGameBackground *layerBackground;
@property (nonatomic,readwrite,assign) LayerGameObject *layerObject;
@property (nonatomic,readwrite,assign) LayerGameTouch *layerTouch;
@property (nonatomic,readwrite,assign) LayerDialog *layerDialog;

- (id)initSceneGame;
- (void)dealloc;
- (void)tick:(ccTime)Time;
- (void)tickSceneChangeToComic:(ccTime)Time;
- (void)tickSceneChangeToMenu:(ccTime)Time;
- (void)tickSceneChangeToChapter:(ccTime)Time;

- (void)Pause;
- (void)Resume;

- (void)FreeLayer;

- (void)SceneChangeToComic;
- (void)SceneChangeToMenu;
- (void)SceneChangeToChapter:(int)MissionID;

@end